import {
  getTimestamp,
  filterTimeHMS
} from './time'
const System = class System {
  constructor(props) {
    this.loginName = props.loginName;
    this.department = props.department;
    this.roleName = props.roleName;
    this.size = props.size;
    this.page = props.page;
  }
  getState() {
    let x = {}
    //用户名
    if (this.loginName) {
      x.loginName = this.loginName
    }
    //部门
    if (this.department) {
      x.department = this.department
    }
    //角色
    if (this.roleName) {
      x.roleName = this.roleName
    }

    x.size = this.size
    x.page = this.page

    return x
  }
};

export default System
